{subtemplate common/header}

<div id="pt" class="wp"><a href="index.php">$_G[setting][bbname]</a> $navigation &rsaquo; $actiontitle</div>

<form id="testform" method="post" autocomplete="off">

<div class="edt">
	<div id="{$editorid}_controls" class="bar">
		<label id="{$editorid}_switcher" class="y"><input type="checkbox" class="pc" name="checkbox" value="0" {if !$editor[editormode]}checked="checked"{/if} onclick="switchEditor(this.checked?0:1)" />{lang code}</label>
		<div class="btn cl">
			<div class="b1r">
				<a id="{$editorid}_paste" title="{lang e_paste}">{lang e_paste}</a>
			</div>
			<div class="b2r">
				<a id="{$editorid}_smp" title="{lang e_bold}">B</a>
				<a id="{$editorid}_fontname" title="{lang e_fontname}">Font</a>
				<a id="{$editorid}_fontsize" title="{lang e_fontsize}">Size</a>
				<a id="{$editorid}_forecolor" title="{lang e_forecolor}">Color</a>
				<p>
					<a id="{$editorid}_tbl" title="{lang e_table}">Table</a>
					<a id="{$editorid}_undo" title="{lang e_undo}">Undo</a>
					<a id="{$editorid}_redo" title="{lang e_redo}">Redo</a>
				</p>
			</div>
			<div class="b2r">
				<a id="{$editorid}_url" title="{lang e_url}">Url</a>
				<a id="{$editorid}_prg" title="{lang e_paragraph}">P</a>
				<p>
					<a id="{$editorid}_unlink" title="{lang e_unlink}">Unlink</a>
					<a id="{$editorid}_lst" title="{lang e_list}">List</a>
				</p>
			</div>

			<div class="b1r">
				<a id="{$editorid}_sml" title="{lang post_smilies}">{lang post_smilies}</a>
				<div id="{$editorid}_imagen" style="display:none">!</div>
				<a id="{$editorid}_code" title="{lang e_code}">{lang e_code}</a>
				<a id="{$editorid}_quote" title="{lang e_quote}">{lang e_quote}</a>
			</div>
		</div>
	</div>

	<div class="area">
		<textarea class="pt" name="$editor[textarea]" id="{$editorid}_textarea" tabindex="1" rows="15">$editor[value]</textarea>
	</div>
	{subtemplate common/editor}
</div>

<div id="{$editorid}_menus" class="editorrow" style="overflow: hidden; margin-top: -5px; height: 0; border: none; background: transparent;">
	{subtemplate common/editor_menu}
</div>

<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode" />
<input type="submit" id="testsubmit" />
</form>

<script type="text/javascript">
	var editorform = $('testform');
	var editorsubmit = $('testsubmit');
	if(wysiwyg) {
		newEditor(1, bbcode2html(textobj.value));
	} else {
		newEditor(0, textobj.value);
	}
</script>

{eval print_r($_POST);}

{subtemplate common/footer}